package com.xbongbong.paas.model;

import com.xbongbong.outLink.domain.entity.OuterLinkConfigEntity;
import com.xbongbong.paas.toolbox.exception.XbbException;

import java.util.List;
import java.util.Map;

/**
 * @author long.rao
 * @version v1.0
 * @date 2020/8/10 9:29
 * @since v1.0
 */
public interface OuterLinkConfigModel{

    List<OuterLinkConfigEntity> findEntitys(Map<String, Object> param) throws XbbException;

    /**
     * 插入实体
     *
     * @param entity 实体
     *
     * @return Integer MyBatis操作结果 1：成功
     */
    Integer insert(OuterLinkConfigEntity entity);

    /**
     * 更新
     * @param entity
     * @return
     */
    Integer update(OuterLinkConfigEntity entity);

    Long save(OuterLinkConfigEntity entity) throws XbbException;
}
